#!/bin/bash
JAR=oom-test-0.0.1-SNAPSHOT.jar
PID=`ps -ef | grep  ${JAR} | grep -w "java" | grep -v "grep" | awk '{print $2}'`
echo  "stop ${JAR}  PID : ${PID}"
  if [ -z "${PID}" ] 
  then
	echo "${JAR} is stoped"
  else
	kill -9 ${PID}
	echo "${JAR} is stop"
	sleep 1
  fi
exit
